import Vue from 'vue'
import Vuex from 'vuex'
// 导入模块
import cart from './modules/cart'
import study from './modules/study'

Vue.use(Vuex)

export default new Vuex.Store({
  actions: {
    // 假装发请求
    reqCartList (ctx) {
      console.log('根store里的reqCartList')
    }
  },
  modules: {
    cart,
    study
  }
})
